package com.huangwenshuo.futurestarschoolmanagement.utils;

import com.huangwenshuo.futurestarschoolmanagement.pojo.vo.Result;

public class ResUtils {
    public ResUtils() {
    }

    public static Result result(int status) {
        return result(status, (Object)null, (String)null);
    }

    public static Result result(Object data) {
        return new Result(data);
    }

    public static Result result(int status, String msg) {
        return result(status, (Object)null, msg);
    }

    public static Result result(int status, Object data) {
        return result(status, data, "请求成功");
    }

    public static Result result(int status, Object data, String msg) {
        Result result = new Result();
        result.setStatus(status);
        result.setMsg(msg);
        result.setData(data);
        return result;
    }
}
